package com.chain.qs.modules.biz.entity;

import com.chain.qs.common.persistence.DataEntity;
import com.chain.qs.common.utils.excel.annotation.ExcelField;

import java.sql.Time;
import java.sql.Timestamp;

public class WarningRecord extends DataEntity<WarningRecord> {
    private static final long serialVersionUID = 1L;


    private String officeCode;
    private String officeId; //多站点时需使用
    private String sgroupId;
    private String sgroupName;
    private String itemId;
    private String itemName;
    private String paramId;
    private String paramKid;
    private String paramName;
    private String ruleId;
    private Timestamp occurDate;
    private Timestamp recoveryDate;
    private Timestamp WarningTime;
    private String isSuspend;
    private String operator;
    private String remarks;


    private String timeBegin;
    private String timeEnd;

    public String getOfficeId() {
        return officeId;
    }

    public void setOfficeId(String officeId) {
        this.officeId = officeId;
    }

    public WarningRecord() {
    }

    public WarningRecord(String officeCode) {
        this.officeCode = officeCode;
    }

    public WarningRecord(String officeCode, String isSuspend, String sgroupId, String itemId, String ruleId) {
        this.officeCode = officeCode;
        this.isSuspend = isSuspend;
        this.sgroupId = sgroupId;
        this.itemId = itemId;
        this.ruleId = ruleId;
    }

    public WarningRecord(String officeCode, String sgroupId, String itemId, String paramId, String ruleId, String isSuspend, String remarks) {
        this.officeCode = officeCode;
        this.sgroupId = sgroupId;
        this.itemId = itemId;
        this.paramId = paramId;
        this.ruleId = ruleId;
        this.isSuspend = isSuspend;
        this.remarks = remarks;
    }

    public WarningRecord(String sgroupId, String itemId, String paramId, String ruleId) {
        this.sgroupId = sgroupId;
        this.itemId = itemId;
        this.paramId = paramId;
        this.ruleId = ruleId;
    }
    @ExcelField(title = "历时", align = 2, sort = 25)
    public Timestamp getWarningTime() {
        return WarningTime;
    }

    public void setWarningTime(Timestamp warningTime) {
        WarningTime = warningTime;
    }

    @ExcelField(title = "告警时间", align = 2, sort = 10)
    public Timestamp getOccurDate() {
        return occurDate;
    }

    public void setOccurDate(Timestamp occurDate) {
        this.occurDate = occurDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    @ExcelField(title = "类型", align = 2, sort = 60, dictType = "event_level")
    public String getIsSuspend() {
        return isSuspend;
    }

    public void setIsSuspend(String isSuspend) {
        this.isSuspend = isSuspend;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    @ExcelField(title = "设备名称", align = 2, sort = 40)
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getOfficeCode() {
        return officeCode;
    }

    public void setOfficeCode(String officeCode) {
        this.officeCode = officeCode;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getParamId() {
        return paramId;
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    public String getParamKid() {
        return paramKid;
    }

    public void setParamKid(String paramKid) {
        this.paramKid = paramKid;
    }

    @ExcelField(title = "参数名", align = 2, sort = 50)
    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    @ExcelField(title = "恢复时间", align = 2, sort = 20)
    public Timestamp getRecoveryDate() {
        return recoveryDate;
    }

    public void setRecoveryDate(Timestamp recoveryDate) {
        this.recoveryDate = recoveryDate;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getSgroupId() {
        return sgroupId;
    }

    public void setSgroupId(String sgroupId) {
        this.sgroupId = sgroupId;
    }

    @ExcelField(title = "组名", align = 2, sort = 30)
    public String getSgroupName() {
        return sgroupName;
    }

    public void setSgroupName(String sgroupName) {
        this.sgroupName = sgroupName;
    }

    public String getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(String timeBegin) {
        this.timeBegin = timeBegin;
    }

    public String getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(String timeEnd) {
        this.timeEnd = timeEnd;
    }

    @ExcelField(title = "描述", align = 2, sort = 80)
    public String getRemarks() {
        return remarks;
    }

    @Override
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
